#ifndef __MID_ADC_H
#define __MID_ADC_H


#ifdef __cplusplus
extern "C" {
#endif
#include "string.h"
#include "ac780x_adc.h"
#include "ac780x_adc_reg.h"
#include "ac780x_gpio.h"
//#include "ac780x.h"
//#include "ac780x_debugout.h"
#include "ac780x_dma.h"
#include "ac780x_ctu.h"
#include "ac780x_timer.h"
#include "ac780x_pwm.h"

#define AMOHighValue    (3000)
#define AMOLowValue     (25)

#define AMOLowOffsetValue    (100)
#define AMOHighOffsetValue   (100)
    
    
#define DMA_TRANSFER_NUM               4
#define AD_KEY_CHANEL_NUM			   2

extern uint32_t g_ADCValueBuffer[DMA_TRANSFER_NUM + 1];

void  ADC_DMACallback(void *device, uint32_t wpara, uint32_t lpara);
extern uint32_t g_ADCValueBuffer[DMA_TRANSFER_NUM + 1];
void ADC_SampleSoftwareTrigerADC(void);

#ifdef __cplusplus
}
#endif

#endif
